package team.scau.laboratory_repair.modules.po;

import javax.persistence.*;

import lombok.*;
import team.scau.laboratory_repair.common.base.BaseModel;

import java.sql.Timestamp;
@Entity
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "lab_record")
public class Record extends BaseModel {

    @Builder
    public Record(Long id, Timestamp createTime, Timestamp updateTime, Timestamp deleteTime, Boolean valid, Long area, String room, String detail, String wechatOpenid, String registrantNumber, String registrantName, String registrantType, String equipmentId, String equipmentName, Long classify) {
        super(id, createTime, updateTime, deleteTime, valid);
        this.area = area;
        this.room = room;
        this.detail = detail;
        this.wechatOpenid = wechatOpenid;
        this.registrantNumber = registrantNumber;
        this.registrantName = registrantName;
        this.registrantType = registrantType;
        this.equipmentId = equipmentId;
        this.equipmentName = equipmentName;
        this.classify = classify;
    }

    @Column
    private Long area;
    @Column
    private String room;
    @Column
    private String detail;
    @Column
    private String wechatOpenid;
    @Column
    private String registrantNumber;
    @Column
    private String registrantName;
    @Column
    private String registrantType;
    @Column
    private String equipmentId;
    @Column
    private String equipmentName;
    @Column
    private Long classify;
}
